Page History: Market Order
Compare Page Revisions
Page Revision: 2013/02/21 17:04
A Market Order is entered with the New Order Single message (35=D) as shown in the following example:
' Submit an order.
moOrder = moAccounts.SubmitNewOrder( _
oAccount, _
oMarket, _
BuySell.Buy, _
PriceType.Limit, _
TimeType.Normal, _
1, _
CDbl(6534))
The following revelant tags are described in the dictionary of the New Order Single message.
here.
penPriceType | Set to PriceType.Limit for a limit order. |
penTimeType | Set to TimeType.Normal for a limit order that will exist for the current trading day only. |
piVolume | Set to the order volume you want. |
pdblLimitPrice | Set to the limit price you want. Be sure that you are using the correct overloaded SubmitNewOrder method and providing either a display price as a double or a tick price as an integer. |